<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>

		<script type="text/javascript">
function doQuery() {
	document.form1.action = "${path}/business/polrenewal/index/policylist";
	document.form1.submit();
}

$(function() {
	//fixTable.FixTable("mytable");
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
})
</script>

	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						续收保单各类型查询
						<div class="tools-btn">
							<a href="#" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
							<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">
								<tr>
									<td align="right">
										投保单号：
									</td>
									<td>
										<input name="appno" type="text" size="17" value="${appno }" />
									</td>
									<td align="right">
										保单号：
									</td>
									<td>
										<input type="text" id="contractno" name="contractno"
											value="${contractno }" />
									</td>
									<td>
										<span>保单期限：</span>
									</td>
									<td>
										<select id="premiums" name="premiums">
											<option value="30D"
												<c:if test="${premiums=='30D' }">selected</c:if>>
												30天到期未缴费保单
											</option>
											<option value="45D"
												<c:if test="${premiums=='45D' }">selected</c:if>>
												45天到期未缴费保单
											</option>
											<option value="60D"
												<c:if test="${premiums=='60D' }">selected</c:if>>
												60天到期未缴费保单
											</option>
											<option value="60KM"
												<c:if test="${premiums=='60KM' }">selected</c:if>>
												宽末后应缴未缴费保单
											</option>
										</select>
									</td>
								</tr>
								<tr>
									<td align="right">
										投保人：
									</td>
									<td>
										<input type="text" id="applicantname" name="applicantname"
											value="${applicantname}" />
									</td>
									<td align="right">
										被保人：
									</td>
									<td>
										<input type="text" id="customername" name="customername"
											value="${customername }" />
									</td>
									<td align="right">
										<span>保单类型：</span>
									</td>
									<td>
										<select id="status" name="status">
											<option value="-1">
												全部
											</option>
											<option value="CONTRACTSTATUS_C2"
												<c:if test="${status=='CONTRACTSTATUS_C2' }">selected</c:if>>
												有效
											</option>
											<option value="CONTRACTSTATUS_C4"
												<c:if test="${status=='CONTRACTSTATUS_C4' }">selected</c:if>>
												退保
											</option>
											<option value="CONTRACTSTATUS_C5"
												<c:if test="${status=='CONTRACTSTATUS_C5' }">selected</c:if>>
												投保人撤单
											</option>
											<option value="CONTRACTSTATUS_C9"
												<c:if test="${status=='CONTRACTSTATUS_C9' }">selected</c:if>>
												失效
											</option>
										</select>
									</td>
									<td align="right">
										<input name="Input" type="button" class="linkbtn2"
											value="查  询" onclick="doQuery()" />
									</td>
								</tr>
							</table>
						</div>
						<!-- 查詢列表 -->
						<div id="mylist" style="height: 365px; overflow: scroll;"
							class="dlist">
							<table id="mytable" cellpadding="0" cellspacing="0"
								class="dg_borderstyle  trStyleTable"
								style="margin-top: 0px; text-align: center; overflow-x: scroll; width: 200%">
								<tr>
									<th name="fixcol">
										<span>序号</span>
									</th>
									<th style="min-width: 60px;">
										<span>保单号</span>
									</th>
									<th style="min-width: 60px;">
										<span>投保单号</span>
									</th>
									<th>
										<span>投保人</span>
									</th>
									<th style="min-width: 60px;">
										<span>供应商</span>
									</th>
									<th width="80px">
										<span>被保人姓名</span>
									</th>
									<th style="min-width: 120px;">
										<span>投保人身份证号</span>
									</th>
									<th style="min-width: 120px;">
										<span>投保人手机</span>
									</th>
									<th style="min-width: 120px;">
										<span>投保人地址</span>
									</th>
									<th>
										<span>缴别</span>
									</th>
									<th>
										<span>应缴日期</span>
									</th>
									<th>
										<span>受理日期</span>
									</th>
									<th>
										<span>生效日期</span>
									</th>
									<th>
										<span>承保日期</span>
									</th>
									<th>
										<span>保单状态</span>
									</th>
								</tr>
								<c:forEach items="${pagination.resultList}" var="list"
									varStatus="ind">
									<tr>
										<td>
											${(pagination.page-1)*10+(ind.index+1)}
										</td>
										<td>
											<span><a
												href="${path}/business/polrenewal/index/policy?cid=${list.CONTRACTID}">
													${empty(list.CONTRACTNO)?"未知":list.CONTRACTNO}</a> </span>
										</td>
										<td>
											<span>${list.APPLICATIONNO}</span>
										</td>
										<td>
											<span>${list.APPLICANTNAME}</span>
										</td>
										<td>
											<span>${list.PROVIDERNAME}</span>
										</td>
										<td>
											<span>${list.CUSTOMERNAME}</span>
										</td>
										<td>
											<span>${list.APPLICANTIDNO}</span>
										</td>
										<td>
											<span>${list.CONTRACTMOBILE}</span>
										</td>
										<td>
											<span>${list.CONTRACTADDR}</span>
										</td>
										<td>
											<span>${list.PREMIUMMODE}</span>
										</td>
										<td>
											<span>${list.PAYDUEDATE}</span>
										</td>
										<td>
											<span>${list.ACCEPTDATE}</span>
										</td>
										<td>
											<span>${list.EFFECTIVEDATE}</span>
										</td>
										<td>
											<span>${list.APPROVEDATE}</span>
										</td>
										<td>
											<span>${list.CONTRACTSTATUS}</span>
										</td>
									</tr>
								</c:forEach>
							</table>
						</div>
						<!----------- 翻页导航 ------------------>
						<c:if test="${not empty pagination.multiPage}">
							<div class="dg_pagerstyle">
								<div class="pageinfo">
									第${pagination.page }页 | 共${pagination.totalPages
									}页/${pagination.totalRows }条记录
								</div>
								<div class="pagebtn">
									${pagination.multiPage}&nbsp;
								</div>
							</div>
						</c:if>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>
